// 任务调度API
import {postAxios,getAxios} from '@/lib/http';
  export const electricTypeConfigApi = {
    // 查询电芯型号类型列表
    getElectricConfigByPage: (data) => {
      return postAxios('/electricConfig/page/query', data);
    },
    // 查询电芯型号类型列表
    getElectricType: () => {
        return getAxios('/electricConfig/queryElectricType');
      },
    // 添加电芯型号类型
    addElectricConfig: (data) => {
      return postAxios('/electricConfig/add', data);
    },
    //更新电芯型号类型
    updateElectricConfig: (data) => {
        return postAxios('/electricConfig/update', data);
      },
    //删除电芯型号类型
    deleteElectricConfig: (electricConfigId) => {
      return getAxios('/electricConfig/deleteById/' + electricConfigId);
    }
  };